home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#44 (May 89)
/
Search Source Code
/
Sysenvirons folder LSP
/
EnvironsIntf.p
< prev
next >
Wrap
Text File
|
1988-07-12
|
1KB
|
62 lines
{}
{ File: EnvironsIntf.p}
{}
{ Copyright Apple Computer, Inc. 1987}
{ All Rights Reserved}
{}
UNIT EnvironsIntf;
INTERFACE
CONST
envMac = -1; {returned by glue, if any}
envXL = -2; {returned by glue, if any}
envMachUnknown = 0;
env512KE = 1;
envMacPlus = 2;
envSE = 3;
envMacII = 4;
envCPUUnknown = 0; { CPU types }
env68000 = 1;
env68010 = 2;
env68020 = 3;
envUnknownKbd = 0; { Keyboard types }
envMacKbd = 1;
envMacAndPad = 2;
envMacPlusKbd = 3;
envAExtendKbd = 4;
envStandADBKbd = 5;
{ Errors }
envNotPresent = -5500; { returned by glue. Official stuff now }
envBadSel = -5501; { Selector non-positive }
envSelTooBig = -5502; { Selector bigger than call can handle }
TYPE
SysEnvRec = RECORD
environsVersion : INTEGER;
machineType : INTEGER;
systemVersion : INTEGER;
processor : INTEGER;
hasFPU : BOOLEAN;
hasColorQD : BOOLEAN;
keyBoardType : INTEGER;
atDrvrVersNum : INTEGER;
sysVRefNum : INTEGER;
END;
FUNCTION SysEnvirons (versionRequested : INTEGER;
VAR theWorld : SysEnvRec) : OSErr;
IMPLEMENTATION
FUNCTION SysEnvirons;
External;
END.